package com.edward.action;



import javax.servlet.http.HttpServletResponse;
import org.apache.struts2.ServletActionContext;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;


public class AccessDeniedAction extends ActionSupport {


	private static final long serialVersionUID = -8869679285404127677L;

	@Override
	public String execute() throws Exception {
		ActionContext ctx = ActionContext.getContext();        
		HttpServletResponse response = (HttpServletResponse)ctx.get(ServletActionContext.HTTP_RESPONSE);    
		response.setContentType("text/html;charset=UTF-8");
		response.getWriter().print("{success:true,msg:'无权限操作',deny:true}");
		return null;
	}

}
